import {createHash} from 'crypto';

export function password(pwd) {
  if(!pwd){
    return null;
  }
  const hash=createHash('md5');
  hash.update(pwd);
  return  hash.digest('hex');
}
